//
//  Comment.m
//  CoolFM
//
//  Created by 曹曹 on 16/09/08
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "Comment.h"
#import "Reply.h"

@implementation Comment

+ (NSDictionary *)objectClassInArray{
    return @{@"reply" : [Reply class]};
}

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"reply"]) {
        _reply = [self arrayWithClass:[Reply class] value:value];
    }
}

@end
